from xml.dom.minidom import parse
import xml.dom.minidom

DOMTree = xml.dom.minidom.parse("huhx.xml")
collection = DOMTree.documentElement
persons = collection.getElementsByTagName('person')

for person in persons:
    if person.hasAttribute('name'):
        print('my name is %s: ' % person.getAttribute('name'))
    age = person.getElementsByTagName('age')[0].childNodes[0].data
    address = person.getElementsByTagName('address')[0].childNodes[0].data
    print('age = %d, address = %s.' % (int(age), address))